<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.head{
			background-color: #666;
			width: 600px;
			height: 600px;
		}
		.main{
			border: 1px solid #fff;
			width: 90px;
			height: 90px;
		}
		.min{
			border: 1px solid #258;
			width: 50px;
			height: 50px;
			background-color: #777;
		}
	</style>
</head>
<body>
	<div class="head">
		<div class="main">
			<div class="min"></div>
		</div>
		<div class="main">
			<div class="min"></div>
		</div>
		<div class="main">
			<div class="min"></div>
		</div>
		<div class="main">
			<div class="min"></div>
		</div>
		<div class="main">
			<div class="min"></div>
		</div>
	</div>


	<script src="../JQuery/jquery-1.11.1.js"></script>
	<script>
		$(".main").eq(0).click(function(){
			$(".head").css({"background-color":"#ff0"})
		})
	</script>
</body>
</html>